package com.kuaiyin.mapper;

import com.kuaiyin.entity.TestCase;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 测试用例表（assertions可选） Mapper 接口
 * </p>
 *
 * @author ng
 * @since 2025-04-27
 */
public interface TestCaseMapper extends BaseMapper<TestCase> {

    @Select("select id from test_case where request_id = #{id}")
    List<Long> selectCaseIdsByRequestId(Long id);

    @Select("select environment_type from test_case where id = #{id}")
    String getEnvironmentType(Long aLong);

    @Select("select name from test_case where id = #{caseId}")
    String getCaseName(Long caseId);
}
